tests: Add OT_TEST_DEBUG environment variable
authorColin Walters <walters@verbum.org>
Wed, 9 Nov 2011 10:28:13 +0000 (05:28 -0500)
committerColin Walters <walters@verbum.org>
Wed, 9 Nov 2011 10:29:53 +0000 (05:29 -0500)
tests/libtest.sh

index f6c889b31f0ed1cf51e8a2904c4284a1c1531cbe..8ebedf7c5b889b377815a50e76016ff024d08b75 100644 (file)
@@ -29,6 +29,10 @@ touch "$test_tmpdir/.test$$"
 
 export G_DEBUG=fatal-warnings
 
+if test -n "${OT_TESTS_DEBUG}"; then
+    set -x
+fi
+
 die () {
     if test -z "$OT_TESTS_SAVE_TEMPS"; then
         test -f "$test_tmpdir/.test$$" && rm -rf "$test_tmpdir"